package cn.tedu._07springaop.egaop2;

import org.springframework.stereotype.Component;

@Component
public class CartServiceImpl implements CartService{
    @Override
    public boolean addCart(String cartDetail) {
//        if("卡号1".equals(cartDetail)){
//            throw new RuntimeException("卡号1被占用");
//        }
        return true;
    }
}
